
import requests
from bs4 import BeautifulSoup
url = "http://www.zongheng.com/rank/details.html?rt=1&amp;d=1"

reponse = requests.get(url)

soup = BeautifulSoup(reponse.text, "html.parser")
res = soup.find_all(class_="rank_d_b_name")
for i in res:
    print(i.a.string)
number = soup.find_all(class_="rank_d_b_rank")
for j in number:
    # print(j.div)
    print(j.contents[3].contents[0])